import request from "@/utils/request";

export const energyStationEquipMaintenanceApi={
  contextPath: '/equip', //按照实际应用修改成微服务的名�?//
  page: (data)=>{ //分页查询//
    return request({
      url: energyStationEquipMaintenanceApi.contextPath+'/en-wz-jf-equip/page',
      method: 'POST',
      data: data
    })
  },
  update: (data)=>{ //更新多条数据//
    return request({
      url: energyStationEquipMaintenanceApi.contextPath+'/en-wz-jf-equip/update',
      method: 'POST',
      data: data
    })
  },
  insert: (data)=>{ //新增多条数据//
    return request({
      url: energyStationEquipMaintenanceApi.contextPath+'/en-wz-jf-equip/insert',
      method: 'POST',
      data: data
    })
  },
  delete: (data) =>{ //删除多条数据//
    return request({
      url: energyStationEquipMaintenanceApi.contextPath+'/en-wz-jf-equip/delete',
      method: 'POST',
      data: data
    })
  },
  getById: (id) =>{ //通过主键查询多条数据//
    return request({
      url: energyStationEquipMaintenanceApi.contextPath+'/en-wz-jf-equip/'+id,
      method: 'POST'
    })
  },
}
